import request from '../../utils/request'

function getProjectList(data) {
  return request({
    url: '/project/projectList',
    method: 'post',
    data
  })
}

function getTechnicalManager(data) {
  return request({
    url: '/user/findWithParameters',
    method: 'post',
    data
  })
}

function getSurveyManager(data) {
  return request({
    url: '/user/findWithParameters',
    method: 'post',
    data
  })
}

function createProject(data) {
  return request({
    url: '/project/add',
    method: 'post',
    data
  })
}

function modifyProject(data) {
  return request({
    url: '/project/modify',
    method: 'post',
    data
  })
}

function deleteProject(data) {
  return request({
    url: '/project/delete',
    method: 'post',
    data
  })
}

export { getProjectList, getTechnicalManager, getSurveyManager, createProject, modifyProject, deleteProject }
